import request from '@/utils/request'

// 查询项目定增-投资红线列表
export function listDealSpoInvestmentRed(query) {
  return request({
    url: '/red/dealSpoInvestmentRed/list',
    method: 'get',
    params: query
  })
}

// 查询项目定增-投资红线详细
export function getDealSpoInvestmentRed(id) {
  return request({
    url: '/red/dealSpoInvestmentRed/' + id,
    method: 'get'
  })
}

// 保存项目定增-投资红线
export function saveDealSpoInvestmentRed(data) {
  return request({
    url: '/red/dealSpoInvestmentRed/save',
    method: 'post',
    data: data
  })
}

// 删除项目定增-投资红线
export function delDealSpoInvestmentRed(id) {
  return request({
    url: '/red/dealSpoInvestmentRed/' + id,
    method: 'delete'
  })
}
// 查询投资红线配置
export function getDealDdList(query) {
  return request({
    url: '/red/dealSpoInvestmentRed/config',
    method: 'get',
    params: query
  })
}
// 保存投资红线配置
export function saveDealDdList(data) {
  return request({
    url: '/red/dealSpoInvestmentRed/saveConfig',
    method: 'post',
    data: data
  })
}
// 导出项目定增-投资红线
export function exportDealSpoInvestmentRed(query) {
  return request({
    url: '/red/dealSpoInvestmentRed/export',
    method: 'get',
    params: query
  })
}
